import com.alibaba.fastjson.JSON;
import handler.dataPackage.DriverDeviceMessage;

/**
 * @author dfj@99chuxing.com
 * @date 2018/4/4 0004 16:49
 */
public class Test {

    @org.junit.Test
    public void test() {

        String aa ="{\"data\":{\"bookOrderId\":\"\",\"orderId\":\"\",\"locList\":[{\"time\":\"20180404154652\",\"direction\":263,\"lng\":113.698433,\"lat\":34.798457,\"speed\":0.0,\"locType\":3},{\"time\":\"20180404154654\",\"direction\":263,\"lng\":113.698433,\"lat\":34.798457,\"speed\":0.0,\"locType\":3},{\"time\":\"20180404154656\",\"direction\":263,\"lng\":113.698433,\"lat\":34.798457,\"speed\":0.0,\"locType\":3},{\"time\":\"20180404154658\",\"direction\":263,\"lng\":113.698433,\"lat\":34.798457,\"speed\":0.0,\"locType\":3},{\"time\":\"20180404154700\",\"direction\":263,\"lng\":113.698433,\"lat\":34.798457,\"speed\":0.0,\"locType\":3}],\"locType\":3,\"locCount\":5,\"status\":1},\"deviceId\":\"450221198709016011\",\"protoType\":\"0007\"}";
        DriverDeviceMessage driverDeviceMessage = JSON.parseObject(aa,DriverDeviceMessage.class);
        System.out.println(driverDeviceMessage.getData());
    }

}
